Skip to content

Conversation

@shigahi
Copy link
Collaborator

@shigahi shigahi commented Jan 22, 2026

Summary

This PR implements multiple customization features requested in the following issues:

Features Implemented

Custom Favicon Support (Closes #16) - priority: high

  • New faviconUrl option in branding settings
  • LinkRewriter removes Notion's default favicon links
  • HeadRewriter adds custom favicon, shortcut icon, and apple-touch-icon
  • Supports .ico, .png, .svg formats

Google Analytics 4 Built-in Support (Closes #14) - priority: medium

  • New analytics.googleTagId option
  • Automatic GA4 script injection in HeadRewriter
  • Simple configuration: just enter your GA4 Measurement ID (G-XXXXXXXXXX)

Custom HTML Header Injection (Closes #20) - priority: medium

  • New customHtml.headerHtml option
  • BodyRewriter prepends custom HTML at top of body
  • Use cases: navigation bars, announcement banners, CTAs

Custom 404 Page Support (Closes #12) - priority: medium

  • New custom404.notionUrl option
  • fetchAndApply returns custom Notion page content with 404 status
  • Maintains brand consistency for error pages

UI Changes

All new features are accessible in the Advanced Settings panel:

  • Branding & Social: Custom Favicon URL field added
  • Analytics: New section with Google Analytics Measurement ID field
  • Custom Header HTML: New section with multiline textarea for HTML
  • Custom 404 Page: New section with Notion URL field

Testing

  • Build succeeds (npm run build)
  • All features generate correct Worker script code
  • UI properly shows/hides in Advanced Settings

- Add custom favicon support (#16)
  - New faviconUrl option in branding settings
  - LinkRewriter removes Notion's default favicon links
  - HeadRewriter adds custom favicon, shortcut icon, and apple-touch-icon

- Add Google Analytics 4 built-in support (#14)
  - New analytics.googleTagId option
  - Automatic GA4 script injection in HeadRewriter

- Add custom HTML header injection (#20)
  - New customHtml.headerHtml option
  - BodyRewriter prepends custom HTML at top of body

- Add custom 404 page support (#12)
  - New custom404.notionUrl option
  - fetchAndApply returns custom Notion page with 404 status
@shigahi shigahi merged commit 72e8034 into master Jan 22, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants